<%@page contentType="text/html; charset=utf-8"%>
<script language="javascript">
	function showBusi(itemId){
		showWin(900,600,"/business/BusinessBillPrint.ihtm?id="+itemId+"&type=ITEM_SIMPLE");
	}
</script>
<div class="table-list">
			<c:set var="hasPreTbl" value="N" />
			<c:if test="${record.hasAreaItem=='Y'}">
			<c:if test="${hasPreTbl=='Y'}"><br></c:if>
			<c:set var="hasPreTbl" value="Y" />
			<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
				<tbody>
				<tr >
					<th width="11%" >项目类型</th>
					<th width="13%" >内容</th>
					<th width="11%" >材质</th>
					<th width="10%" >规格</th>
					<th width="14%" >制作要求</th>
					<th width="7%" >数量</th>
					<th width="7%" >平方数</th>
					<th width="7%" >单价</th>
					<th width="9%" >金额</th>
					<th width="11%">来源</th>
				</tr>
				<c:forEach var="item" items="${record.items}" varStatus="i">
				<c:if test="${item.cooperBillItem.priceType=='AREA'}">
				<tr >
					<td>${item.makeTypeName}</td>
					<td><commonTag:parseEnterToBr source="${item.cooperBillItem.finishedContent}" /></td>
					<td>${item.cooperBillItem.proName}</td>
					<td><commonTag:parseEnterToBr source="${item.cooperBillItem.specification}" /></td>
					<td><commonTag:parseEnterToBr source="${item.cooperBillItem.makeRequire}" /></td>
					<td><commonTag:parseBigDecimal source="${item.cooperBillItem.amount}" /></td>
					<td><commonTag:parseBigDecimal source="${item.cooperBillItem.squareNum}" /></td>
					<td><commonTag:parseBigDecimal source="${item.cooperBillItem.unitPrice}" /></td>
					<td><commonTag:parseBigDecimal source="${item.cooperBillItem.cost}" /></td>
					<td><a href="javascript:showBusi(${item.cooperBillItem.bbItemId});"><commonTag:parseEnterToBr source="${item.cooperBillItem.bbCode}" /></a></td>
				</tr>
				</c:if>
				</c:forEach>
				</tbody>
		  </table>
		  </c:if>
		  
		  <c:if test="${record.hasLengthItem=='Y'}">
			<c:if test="${hasPreTbl=='Y'}"><br></c:if>
			<c:set var="hasPreTbl" value="Y" />
			<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
				<tbody>
				<tr >
					<th width="11%" >项目类型</th>
					<th width="13%" >内容</th>
					<th width="11%" >材质</th>
					<th width="10%" >规格</th>
					<th width="14%" >制作要求</th>
					<th width="7%" >数量</th>
					<th width="7%" >总长度</th>
					<th width="7%" >单价</th>
					<th width="9%" >金额</th>
					<th width="11%">来源</th>
				</tr>
				<c:forEach var="item" items="${record.items}" varStatus="i">
				<c:if test="${item.cooperBillItem.priceType=='LENGTH'}">
				<tr >
					<td>${item.makeTypeName}</td>
					<td><commonTag:parseEnterToBr source="${item.cooperBillItem.finishedContent}" /></td>
					<td>${item.cooperBillItem.proName}</td>
					<td><commonTag:parseEnterToBr source="${item.cooperBillItem.specification}" /></td>
					<td><commonTag:parseEnterToBr source="${item.cooperBillItem.makeRequire}" /></td>
					<td><commonTag:parseBigDecimal source="${item.cooperBillItem.amount}" /></td>
					<td>
						<commonTag:parseBigDecimal source="${item.cooperBillItem.squareNum}" />
						<c:if test="${item.cooperBillItem.lengType=='M'}">米</c:if><c:if test="${item.cooperBillItem.lengType=='CM'}">公分</c:if>
					</td>
					<td><commonTag:parseBigDecimal source="${item.cooperBillItem.unitPrice}" /></td>
					<td><commonTag:parseBigDecimal source="${item.cooperBillItem.cost}" /></td>
					<td><a href="javascript:showBusi(${item.cooperBillItem.bbItemId});"><commonTag:parseEnterToBr source="${item.cooperBillItem.bbCode}" /></a></td>
				</tr>
				</c:if>
				</c:forEach>
				</tbody>
		  </table>
		  </c:if>
		  
		  <c:if test="${record.hasAmountItem=='Y'}">
			<c:if test="${hasPreTbl=='Y'}"><br></c:if>
			<c:set var="hasPreTbl" value="Y" />
			<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
				<tbody>
				<tr >
					<th width="11%" >项目类型</th>
					<th width="13%" >内容</th>
					<th width="11%" >材质</th>
					<th width="10%" >规格</th>
					<th width="14%" >制作要求</th>
					<th width="7%" >单位</th>
					<th width="7%" >数量</th>
					<th width="7%" >单价</th>
					<th width="9%" >金额</th>
					<th width="11%">来源</th>
				</tr>
				<c:forEach var="item" items="${record.items}" varStatus="i">
				<c:if test="${item.cooperBillItem.priceType=='AMOUNT'}">
				<tr >
					<td>${item.makeTypeName}</td>
					<td><commonTag:parseEnterToBr source="${item.cooperBillItem.finishedContent}" /></td>
					<td>${item.cooperBillItem.proName}</td>
					<td><commonTag:parseEnterToBr source="${item.cooperBillItem.specification}" /></td>
					<td><commonTag:parseEnterToBr source="${item.cooperBillItem.makeRequire}" /></td>
					<td>${item.cooperBillItem.unit}</td>
					<td><commonTag:parseBigDecimal source="${item.cooperBillItem.amount}" /></td>
					<td><commonTag:parseBigDecimal source="${item.cooperBillItem.unitPrice}" /></td>
					<td><commonTag:parseBigDecimal source="${item.cooperBillItem.cost}" /></td>
					<td><a href="javascript:showBusi(${item.cooperBillItem.bbItemId});"><commonTag:parseEnterToBr source="${item.cooperBillItem.bbCode}" /></a></td>
				</tr>
				</c:if>
				</c:forEach>
				</tbody>
		  </table>
		  </c:if>
</div>